class CreateUserAdmin < ActiveRecord::Migration
  def self.up
    usuario = Usuario.create(:login => 'admin', :password => "cambiame", :password_confirmation => "cambiame", 
                   :email => "info@tomatime.com", :activation_code => nil, :activated_at => Time.now,
                   :visible => false)
    usuario.admin = true
    usuario.save
  end
  
  def self.down
    Usuario.find_by_login('admin').destroy
  end
end
